Skip to content

fix: reject cross-repo linked issue references in mirror path (#1243)#1247

Closed
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1243-mirror-linked-issue-repo
Closed

fix: reject cross-repo linked issue references in mirror path (#1243)#1247
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1243-mirror-linked-issue-repo

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

@alpurkan17 alpurkan17 commented May 13, 2026

Summary

Add repository_full_name field to MirrorLinkedIssue and a cross-repo gate in _is_valid_linked_issue to reject linked issues that belong to a different repo than the PR.

PR #1038 fixed this for the legacy path; this ports the same check to the mirror path. No behavior change for same-repo linked issues.

Validation

  • uv run ruff check — clean
  • uv run ruff format --check — clean
  • uv run pyright — 0 errors / 0 warnings
  • uv run pytest tests/ -q — existing tests pass

Closes #1243

@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented May 19, 2026

Duplicate of #1246 which is better scoped/implemented. Closing.

@anderdc anderdc closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: mirror-path _is_valid_linked_issue accepts cross-repo Closes references

2 participants